import httpRequest from '../../utils/request'
import modules from '../modules'
const defaultRoute = 'Equipment_EquipmentManagement'
const controllerName = 'EquipmentManagement'

export interface EquipmentManagementParam {
  EquipmentName: string | null
  PageIndex: number
  PageSize: number
  totalCount: number
 
}


// 获取设备管理列表
export function ApiGetEquipment_EquipmentManagementPageListAsync(param: EquipmentManagementParam) {
  return httpRequest({
    url: `${modules.EquipmentModuleUrl}/${controllerName}/Get${defaultRoute}PageList`,
    method: "Post",
    data: param,
  });
}

// 批量删除设备管理
export function ApiDeletionEquipment_EquipmentManagementAsync(param: string[]) {
  return httpRequest({
    url: `${modules.EquipmentModuleUrl}/${controllerName}/Deletion${defaultRoute}`,
    method: "Post",
    data: param,
  });
}


// 添加设备管理
export function ApiCreateEquipment_EquipmentManagementAsync(param: object) {
  return httpRequest({
    url: `${modules.EquipmentModuleUrl}/${controllerName}/Create${defaultRoute}`,
    method: "Post",
    data: param,
  });
}


// 更新设备管理
export function ApiUpdateEquipment_EquipmentManagementAsync(param: object) {
  return httpRequest({
    url: `${modules.EquipmentModuleUrl}/${controllerName}/Update${defaultRoute}`,
    method: "Post",
    data: param,
  });
}